<%@ page import="JurisPro.modelo.Usuario"%>
<%@ page import="JurisPro.modelo.Local"%>
<%@ page import="JurisPro.modelo.Foro"%>


<%@page import="org.apache.jasper.tagplugins.jstl.core.ForEach"%><jsp:include page="static/cabecalhoClean.jsp"/>

     <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#CDCDCD">
     
     <tr>
       <td width="620" height="39" class="topicos">Cadastro de Processo<br /></td>
     </tr>
   </table>
     <table width="100%" border="0" cellspacing="0" cellpadding="0">
       <tr>
         <td>&nbsp;</td>
       </tr>
     </table>
          
     <form method="post" ENCTYPE="multipart/form-data" action="/JurisPro/do_it?" target="_top">
       <div align="center">
	<table width="100%" border="0" cellpadding="0" align="center" cellspacing="0"
			class="tabela">
			<tr>
				<td width="30%">
				<div align="left" class="texto">N&ordm; da Pasta</div>
				</td>
				<jsp:useBean id="user" type="JurisPro.modelo.Usuario" scope="session" />
				
				<td width="70%" height="30" colspan="2" align="left"><label>
				<input name="comando" type="hidden" id="textfield" value="cad_processo" />
				<input name="responsavel" type="hidden" id="textfield" value="<%=user.getId()%>" />
           		<input title="*Pasta" name="pasta" type="text" id="textfield" size="20" />	</label></td>
			</tr>
			<tr>
				<td>
				<div align="left" class="texto">Data de Entrada</div>
				</td>
				<td align="left">
				<label> <input title="*Data" type="text" class="calendarSelectDate" size="20" name="data"/> </label>
   							<div id="calendarDiv"></div>
				</td>
			</tr>
			<tr>
			<td>
				<div align="left" class="texto">N&ordm; do Processo</div>
				</td>
				<td height="30" colspan="2" align="left">
				<label> <input title="*NumeroProcesso" name="numPro" type="text" id="textfield3" size="20" /> </label>
				</td>
    		</tr>
    		<tr>
			<td>
				<div align="left" class="texto">Autor</div>
				</td>
				<td height="30" colspan="2" align="left">
				<label><input title="*Autor" name="autor" type="text" id="textfield4" size="50" /></label>
				</td>
    		</tr>
			<tr><td>
				<div align="left" class="texto">Parte</div>
				</td>
				<td height="30" colspan="2" align="left">
				<label><input title="*Parte" name="parte" type="text" id="textfield4" size="50" /></label>
		    </td></tr>
			<tr>
				<td>
				<div align="left" class="texto">Quem &eacute; o cliente?</div>
				</td>
				<td height="30" colspan="2" align="left"><label> <input
					type="radio" name="cliente" value="autor" id="Autor_0" />
				Autor&nbsp;&nbsp;&nbsp;</label> <label> <input type="radio"
					name="cliente" value="parte" id="Autor_1" /> Parte</label></td>
			</tr>
			<tr><td>
				<div align="left" class="texto">Localidade</div>
				</td>
				<td height="30" colspan="2" align="left">
				<jsp:useBean id="localidades" type="java.util.List<JurisPro.modelo.Local>" scope="request"/>
				<label>				
          		 <select name="local" id="select">
             		<option>selecione a cidade</option>
             		<%for(Local localidade : localidades){ %>
             		<option><%= localidade.toString() %></option>
             		<%} %>
             		
           		</select></label>
				 
           		<label align="left" class="texto"> Outro local </label>

           		<label>				
          		 <input name="outro" type="text" size="13" /></label>
          		 <label align="left" class="texto"> (ex.: cidade/UF) </label>
		    </td></tr>
			<tr><td>
				<div align="left" class="texto">Foro</div>
				</td>
				<td height="30" colspan="2" align="left">
				<jsp:useBean id="foros" type="java.util.List<JurisPro.modelo.Foro>" scope="request"/>
				<label>				
          		 <select name="foro" id="select">
             		<option>selecione um foro &nbsp;&nbsp;</option>
             		<%for(Foro foro : foros){ %>
             		<option><%= foro.getForo()%></option>
             		<%} %>
             		
           		</select></label>

           		<label align="left" class="texto"> Outro Foro </label>

           		<label>				
          		 <input name="outroForo" type="text" size="13" /></label>
          		 <a class="link" href="/JurisPro/go_to?pagina=del_localforo">Excluir local/foro</a>
		    </td></tr>
		    <tr><td>
				<div align="left" class="texto">Upload de PDF</div>
				</td>
				<td height="30" colspan="2" align="left">
				<label> <input name="pdf" type="file"  size="50" /></label>
		    </td></tr>
			<tr>
				<td></td>
				<td colspan="2" align="left"><label> <input type="submit" value="Cadastrar" /> &nbsp; 
					<input type="reset"	value="Limpar" /> </label></td>
				<td>&nbsp;</td>
			</tr>
		</table>
  
        </div>
       <label></label>

     </form>
     <table>
     <tr>
     <td>		
			
		</td>
	</tr>
	</table>

